//
//  DownLoadTableViewCell.m
//  FitTime
//
//  Created by 赵建平 on 16/4/9.
//  Copyright © 2016年 赵建平. All rights reserved.
//

#import "DownLoadTableViewCell.h"

@implementation DownLoadTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.reftImageView = [UIImageView new];
        [self.contentView addSubview:self.reftImageView];
        
        self.titleLable = [UILabel new];
        [self.contentView addSubview:self.titleLable];
    }

    return self;
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    [self.reftImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView.mas_left).offset(10);
        make.top.equalTo(self.contentView.mas_top).offset(10);
        make.bottom.equalTo(self.contentView.mas_bottom).offset(-10);
        make.width.mas_equalTo(@200);
    }];
    
    [self.titleLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.reftImageView.mas_right).offset(20);
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.height.mas_equalTo(@30);
    }];
}








@end
